package com.ym.b2b.order.vo;

import java.io.Serializable;
import java.util.List;

import com.ym.b2b.commons.conf.WebTokenUser;
import com.ym.b2b.commons.util.CheckData;
import com.ym.b2b.order.sqlbean.EmSOrderConfirmItem;
import com.ym.b2b.order.sqlbean.EmSShoppingCart;

public class OrderInfoVO implements Serializable {

    private static final long         serialVersionUID = -6878846817343097334L;
    private WebTokenUser              user;
    private String                    buyerCode;
    private String                    orderCode;
    private Long                      orderId;
    private Integer                   isInvoice;
    private Integer                   invoiceType;
    private Integer                   isInvoiceAlone;
    private String                    totalIntegral;
    private String[][]                productCodeS;
    private Integer                   isPrint;
    private String                    invoiceManLoginName;
    private Long                      buyerAddressId;                          // 采购商地址ID
    private String                    createUser;
    private String                    salesman         = "";
    private String                    salesmanPhone;
    private String                    createDate;
    private Double                    totalMoney;
    private Double                    confirmMoney;
    private Double                    confirmAmount;
    private Double                    totalAmount;
    private String                    status;
    private String                    startDate;
    private String                    endDate;
    private String                    buyerName;
    private String                    areaCode;
    private String                    chsName;
    private String                    startSaleDate;
    private String                    endSaleDate;
    private String                    batchNumber;
    private String                    areaName;
    private String                    isDown;
    private String                    erpCode;
    private String                    feeType;
    private String                    authorizeNumber;
    private String                    producingName;
    private String                    productType;
    private String                    spell;
    private String                    productCode;
    private String                    returnReson;
    private String                    returnAmount;
    private String                    isControl        = "0";
    private String                    orderType;
    private String                    accountMoney;
    private String                    orderNotes       = "";

    private Double                    tradeFeeMoney;

    private List<EmSShoppingCart>     shoppingCartList;
    private List<EmSOrderConfirmItem> emSOrderConfirmItemList;

    public void setOrderFromOrderId(Long orderId) {
        String code = CheckData.getfDate("yyMMddhhmmss") + "0000000".substring(0, 8 - String.valueOf(orderId).length())
                      + String.valueOf(orderId);
        this.orderCode = code;
        this.orderId = orderId;
    }

    public String getBuyerCode() {
        return buyerCode;
    }

    public void setBuyerCode(String buyerCode) {
        this.buyerCode = buyerCode;
    }

    public String getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }

    public String getTotalIntegral() {
        return totalIntegral;
    }

    public List<EmSOrderConfirmItem> getEmSOrderConfirmItemList() {
        return emSOrderConfirmItemList;
    }

    public void setEmSOrderConfirmItemList(List<EmSOrderConfirmItem> emSOrderConfirmItemList) {
        this.emSOrderConfirmItemList = emSOrderConfirmItemList;
    }

    public void setTotalIntegral(String totalIntegral) {
        this.totalIntegral = totalIntegral;
    }

    public String[][] getProductCodeS() {
        return productCodeS;
    }

    public void setProductCodeS(String[][] productCodeS) {
        this.productCodeS = productCodeS;
    }

    public String getInvoiceManLoginName() {
        return invoiceManLoginName;
    }

    public void setInvoiceManLoginName(String invoiceManLoginName) {
        this.invoiceManLoginName = invoiceManLoginName;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public String getSalesman() {
        return salesman;
    }

    public void setSalesman(String salesman) {
        this.salesman = salesman;
    }

    public String getSalesmanPhone() {
        return salesmanPhone;
    }

    public void setSalesmanPhone(String salesmanPhone) {
        this.salesmanPhone = salesmanPhone;
    }

    public String getCreateDate() {
        return createDate;
    }

    public void setCreateDate(String createDate) {
        this.createDate = createDate;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getStartDate() {
        return startDate;
    }

    public void setStartDate(String startDate) {
        this.startDate = startDate;
    }

    public String getEndDate() {
        return endDate;
    }

    public void setEndDate(String endDate) {
        this.endDate = endDate;
    }

    public WebTokenUser getUser() {
        return user;
    }

    public void setUser(WebTokenUser user) {
        this.user = user;
    }

    public String getBuyerName() {
        return buyerName;
    }

    public void setBuyerName(String buyerName) {
        this.buyerName = buyerName;
    }

    public String getAreaCode() {
        return areaCode;
    }

    public void setAreaCode(String areaCode) {
        this.areaCode = areaCode;
    }

    public String getChsName() {
        return chsName;
    }

    public void setChsName(String chsName) {
        this.chsName = chsName;
    }

    public String getStartSaleDate() {
        return startSaleDate;
    }

    public void setStartSaleDate(String startSaleDate) {
        this.startSaleDate = startSaleDate;
    }

    public String getEndSaleDate() {
        return endSaleDate;
    }

    public void setEndSaleDate(String endSaleDate) {
        this.endSaleDate = endSaleDate;
    }

    public String getBatchNumber() {
        return batchNumber;
    }

    public void setBatchNumber(String batchNumber) {
        this.batchNumber = batchNumber;
    }

    public String getAreaName() {
        return areaName;
    }

    public void setAreaName(String areaName) {
        this.areaName = areaName;
    }

    public String getIsDown() {
        return isDown;
    }

    public void setIsDown(String isDown) {
        this.isDown = isDown;
    }

    public String getErpCode() {
        return erpCode;
    }

    public void setErpCode(String erpCode) {
        this.erpCode = erpCode;
    }

    public String getFeeType() {
        return feeType;
    }

    public void setFeeType(String feeType) {
        this.feeType = feeType;
    }

    public String getAuthorizeNumber() {
        return authorizeNumber;
    }

    public void setAuthorizeNumber(String authorizeNumber) {
        this.authorizeNumber = authorizeNumber;
    }

    public String getProducingName() {
        return producingName;
    }

    public void setProducingName(String producingName) {
        this.producingName = producingName;
    }

    public String getProductType() {
        return productType;
    }

    public void setProductType(String productType) {
        this.productType = productType;
    }

    public String getSpell() {
        return spell;
    }

    public void setSpell(String spell) {
        this.spell = spell;
    }

    public String getProductCode() {
        return productCode;
    }

    public void setProductCode(String productCode) {
        this.productCode = productCode;
    }

    public String getReturnReson() {
        return returnReson;
    }

    public void setReturnReson(String returnReson) {
        this.returnReson = returnReson;
    }

    public String getReturnAmount() {
        return returnAmount;
    }

    public void setReturnAmount(String returnAmount) {
        this.returnAmount = returnAmount;
    }

    public String getIsControl() {
        return isControl;
    }

    public void setIsControl(String isControl) {
        this.isControl = isControl;
    }

    public String getOrderType() {
        return orderType;
    }

    public void setOrderType(String orderType) {
        this.orderType = orderType;
    }

    public String getAccountMoney() {
        return accountMoney;
    }

    public void setAccountMoney(String accountMoney) {
        this.accountMoney = accountMoney;
    }

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public Double getTotalMoney() {
        return totalMoney;
    }

    public void setTotalMoney(Double totalMoney) {
        this.totalMoney = totalMoney;
    }

    public Integer getIsInvoiceAlone() {
        return isInvoiceAlone;
    }

    public void setIsInvoiceAlone(Integer isInvoiceAlone) {
        this.isInvoiceAlone = isInvoiceAlone;
    }

    public Double getConfirmMoney() {
        return confirmMoney;
    }

    public void setConfirmMoney(Double confirmMoney) {
        this.confirmMoney = confirmMoney;
    }

    public Double getConfirmAmount() {
        return confirmAmount;
    }

    public void setConfirmAmount(Double confirmAmount) {
        this.confirmAmount = confirmAmount;
    }

    public Double getTotalAmount() {
        return totalAmount;
    }

    public void setTotalAmount(Double totalAmount) {
        this.totalAmount = totalAmount;
    }

    public Integer getIsInvoice() {
        return isInvoice;
    }

    public void setIsInvoice(Integer isInvoice) {
        this.isInvoice = isInvoice;
    }

    public Integer getInvoiceType() {
        return invoiceType;
    }

    public void setInvoiceType(Integer invoiceType) {
        this.invoiceType = invoiceType;
    }

    public Integer getIsPrint() {
        return isPrint;
    }

    public Long getBuyerAddressId() {
        return buyerAddressId;
    }

    public void setBuyerAddressId(Long buyerAddressId) {
        this.buyerAddressId = buyerAddressId;
    }

    public void setIsPrint(Integer isPrint) {
        this.isPrint = isPrint;
    }

    public List<EmSShoppingCart> getShoppingCartList() {
        return shoppingCartList;
    }

    public void setShoppingCartList(List<EmSShoppingCart> shoppingCartList) {
        this.shoppingCartList = shoppingCartList;
    }

    public String getOrderNotes() {
        return orderNotes;
    }

    public void setOrderNotes(String orderNotes) {
        this.orderNotes = orderNotes;
    }

    public Double getTradeFeeMoney() {
        return tradeFeeMoney;
    }

    public void setTradeFeeMoney(Double tradeFeeMoney) {
        this.tradeFeeMoney = tradeFeeMoney;
    }

}
